//import com.itheima.Student;
//
//import java.io.BufferedReader;
//import java.io.FileNotFoundException;
//import java.io.FileReader;
//import java.io.IOException;
//import java.util.ArrayList;
//
//public class File2Collection_plus {
//    public static void main(String[] args) throws IOException {
//        String path = "MyFile\\src\\tmp\\StuInfo_plus.txt";
//        BufferedReader br = new BufferedReader(new FileReader(path));
//        ArrayList<Student> alt = new ArrayList<Student>();
//        String line;
//        while((line = br.readLine()) != null){
//            String[] strings = line.split(",");
//            alt.add(new Student(strings[0],strings[1]));
//        }
//            br.close();
//
//        for(Student stu : alt){
//            System.out.println(stu.getName() + "," + stu.getAge());
//        }
//    }
//}
